/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.cloudfactory.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 前台注册帐号信息
 * @author ThinkGem
 * @version 2018-09-02
 */
public class CloudfactoryUser extends DataEntity<CloudfactoryUser> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 用户名
	private String loginName;		// 登录名
	private String loginPassword;		// 登陆密码
	private String mobile;		// 手机号
	private String isApprove;		// 是否认证0:认证；1:未认证
	private String email;		// 邮箱
	private String companyName;		// 企业名称
	private String companyShort;		// 企业简称
	private String province;		// 省份
	private String provinceId;		// 省份ID
	private String city;		// 市
	private String cityId;		// 市ID
	private String district;		// 区/县
	private String districtId;		// 区/县ID
	private String address;		// 详细地址
	private String log;		// logo地址
	private String business;		// 营业执照图片地址
	private String trade;		// 行业类型
	private String tradeId;		// 行业类型ID
	private String contact;		// 企业联系人姓名
	private String contactMobile;		// 企业联系电话
	private String contactEmail;		// 企业联系邮箱
	
	public CloudfactoryUser() {
		super();
	}

	public CloudfactoryUser(String id){
		super(id);
	}

	@Length(min=0, max=255, message="用户名长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="登录名长度必须介于 0 和 255 之间")
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@Length(min=0, max=255, message="登陆密码长度必须介于 0 和 255 之间")
	public String getLoginPassword() {
		return loginPassword;
	}

	public void setLoginPassword(String loginPassword) {
		this.loginPassword = loginPassword;
	}
	
	@Length(min=0, max=13, message="手机号长度必须介于 0 和 13 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=1, max=1, message="是否认证长度必须介于 1 和 1 之间")
	public String getIsApprove() {
		return isApprove;
	}

	public void setIsApprove(String isApprove) {
		this.isApprove = isApprove;
	}
	
	@Length(min=0, max=255, message="邮箱长度必须介于 0 和 255 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=255, message="企业名称长度必须介于 0 和 255 之间")
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Length(min=0, max=255, message="企业简称长度必须介于 0 和 255 之间")
	public String getCompanyShort() {
		return companyShort;
	}

	public void setCompanyShort(String companyShort) {
		this.companyShort = companyShort;
	}
	
	@Length(min=0, max=255, message="省份长度必须介于 0 和 255 之间")
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	
	@Length(min=0, max=64, message="省份ID长度必须介于 0 和 64 之间")
	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	
	@Length(min=0, max=255, message="市长度必须介于 0 和 255 之间")
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Length(min=0, max=64, message="市ID长度必须介于 0 和 64 之间")
	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	
	@Length(min=0, max=255, message="区/县长度必须介于 0 和 255 之间")
	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}
	
	@Length(min=0, max=64, message="区/县ID长度必须介于 0 和 64 之间")
	public String getDistrictId() {
		return districtId;
	}

	public void setDistrictId(String districtId) {
		this.districtId = districtId;
	}
	
	@Length(min=0, max=255, message="详细地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="logo地址长度必须介于 0 和 255 之间")
	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}
	
	@Length(min=0, max=255, message="营业执照图片地址长度必须介于 0 和 255 之间")
	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}
	
	@Length(min=0, max=255, message="行业类型长度必须介于 0 和 255 之间")
	public String getTrade() {
		return trade;
	}

	public void setTrade(String trade) {
		this.trade = trade;
	}
	
	@Length(min=0, max=64, message="行业类型ID长度必须介于 0 和 64 之间")
	public String getTradeId() {
		return tradeId;
	}

	public void setTradeId(String tradeId) {
		this.tradeId = tradeId;
	}
	
	@Length(min=0, max=255, message="企业联系人姓名长度必须介于 0 和 255 之间")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}
	
	@Length(min=0, max=255, message="企业联系电话长度必须介于 0 和 255 之间")
	public String getContactMobile() {
		return contactMobile;
	}

	public void setContactMobile(String contactMobile) {
		this.contactMobile = contactMobile;
	}
	
	@Length(min=0, max=255, message="企业联系邮箱长度必须介于 0 和 255 之间")
	public String getContactEmail() {
		return contactEmail;
	}

	public void setContactEmail(String contactEmail) {
		this.contactEmail = contactEmail;
	}
	
}